<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\DistributionRule
 *
 * @property int $id
 * @property string $rule_name 规则名称
 * @property int $grade 级别,数字越大级别越高，一级一级往上升
 * @property float $first_ratio 一级分销提成比率
 * @property float $secondary_ratio 二级分销提成比率
 * @property float $three_ratio 三级分销提成比率
 * @property int $auto_upgrade 自动升级：0不支持，1支持
 * @property int $is_default 默认等级：0不是，1是
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule newQuery()
 * @method static \Illuminate\Database\Query\Builder|\App\DistributionRule onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule query()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereAutoUpgrade($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereFirstRatio($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereGrade($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereIsDefault($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereRuleName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereSecondaryRatio($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereThreeRatio($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\DistributionRule withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\DistributionRule withoutTrashed()
 * @mixin \Eloquent
 * @property int $status 状态：0关闭，1开启
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DistributionRule whereStatus($value)
 */
class DistributionRule extends Model
{
    protected $guarded = [];
    use SoftDeletes;
}
